﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DimOS.Internals
{
    public class Entry
    {
        public string Key { get; set; }

        public int Value { get; set; }

        public Entry(string key, int value)
        {
            Key = key;
            Value = value;
        }

        public static Entry Find(List<Entry> source, string name)
        {
            for (int i = 0; i < source.Count; i++)
                if (source[i].Key == name) return source[i];
            return null;
        }
    }
}
